appcd-config
Library for config files with metadata.
Visit https://github.com/appcelerator/appc-daemon for more information.
Installation
npm i appcd-config
Usage
import Config from 'appcd-config';
const conf = new Config({
config: {
some: {
setting: 'value'
}
},
configFile: '/path/to/js-or-json-file'
});
conf.get('some.setting');
conf.on('change', () => {
console.log('config changed!');
});
conf.set('some.setting', 'another value');
Legal
This project is open source under the Apache Public License v2 and is developed by
Axway, Inc and the community. Please read the LICENSE
file included
in this distribution for more information.